package com.itheima.thread.Demo2;

public class Demo2 {
    public static void main(String[] args) throws InterruptedException {
        MyRunnable mt = new MyRunnable();

        Thread t1 = new Thread(mt);
        t1.setName("线程1");
        t1.setPriority(10);
        t1.start();

        //Thread.sleep(1000);

        Thread t2 = new Thread(mt);
        t2.setName("线程2");
        t2.setPriority(1);
        t2.start();
    }
}
